<?php
if (!defined('ZAZA')) exit('No direct script access allowed');
/**
 * @copyright     ZaZa Group
 * @author        Sir Doan
 */

class Widget
{   
    function __construct()
    {
        
    }
    
    public function load($name = null, $arrObj = array())
    {
        if($name == null) return;
        System::registerFile($name, WIDGET_PATH . DS);
        $classWidget = 'WG_'. $name;
        $objWidget = new $classWidget($arrObj);
        return $objWidget->draw(); 
    }
}
?>
